package com.farmUni.service.impl;

import com.farmUni.service.AIChatService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
@Service
public class AIChatServiceImpl implements AIChatService {

    @Override
    public String aichat(MultipartFile file) {
//        try {
//            SoundToText sound = new SoundToText();
//            String base64 = sound.mp3ToPcmBase64(file);
//            return sound.run(base64);
//        } catch (IOException | JSONException e) {
//            throw new RuntimeException(e);
//        }
        return null;
    }
}
